#pragma once


#include "GridCtrl/GridCtrl.h"

// CInputView form view

class CInputView : public CView
{
	DECLARE_DYNCREATE(CInputView)

public:
	CInputView();           // protected constructor used by dynamic creation
	virtual ~CInputView();

public:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif
protected:
	afx_msg void OnGridRClick(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnGridDBClick(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnEndEditNumber(NMHDR *pNMHDR, LRESULT *pResult);
	
	DECLARE_MESSAGE_MAP()
public:
	int getNumPhoneInGrid(int& nLastMB, int& nLastAcc);
	int getMaxCodePhoneInGrid();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void onInsertRow();
public:
	CGridCtrl m_GridCInputView;
	
};


